package top.kaoshanji.p1ch10c;

/**
 * 代码清单-p1ch10c-229页a：默认方法示例
 * author kaoshanji
 * ^_^
 * create time 2025/3/10 17:51
 */
public interface InterfaceWithDefault {

    void firstMethod();
    void secondMethod();

    default void newMethod() {
        System.out.println("newMethod");
    }

}
